﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BrokerBase.Lib.Policy;

namespace broker.duty.YG
{
    /// <summary>
    /// 阳光人寿好兆投成人年金保险
    /// </summary>
    class Class7
    {
        public void Calc1(IPolicyPeriodActing ppa, IDutyActing da)
        {

            da.Value = ppa.Amount * 0.2;

        }

        public void Calc1(IPolicyPeriodActing ppa, IDutyActing da)
        {

            if (ppa.Period > 0)
            {
                double f = (double)ppa.SchemePeriodActing.SchemeActing.GetAuxConfigValue("分红率(预估)");

                da.Value = ppa.TotalFee * f;
            }

        }
    }
}
